from llama_index.readers.file import FlatReader 
from pathlib import Path 
from llama_index.core.node_parser import MarkdownNodeParser
from llamaindex02 import show_json

documents = FlatReader().load_data(Path("./data/ChatAll.md"))

parser = MarkdownNodeParser()
nodes = parser.get_nodes_from_documents(documents)

show_json(nodes[0])
show_json(nodes[1])
show_json(nodes[2])